package com.lsk.servicemap.controller;

import com.lsk.internalcommon.DTO.DicDistrict;
import com.lsk.servicemap.mapper.DicDistrictMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
public class TestController {
    @Autowired
    private DicDistrictMapper mapper;

    @RequestMapping("test_DicDistrict")
    public String dicDistrict(){
        Map<String, Object> map = new HashMap<>();
        map.put("address_code","110000");
        List<DicDistrict> dicDistricts = mapper.selectByMap(map);

        return "dic_district";
    }
}
